//#ifndef COMMUNICATION_H
//#define COMMUNICATION_H
////#include<ros/ros.h>
//#include<QUdpSocket>
//#include<string>

////Tools to communicate with Speech Recognition Server
//class Communication//:QThread
//{
//public:

//    Communication():host(),is_closed(true)
//    {
//        socket=new QUdpSocket();
//    }
//    void Config(unsigned short _port,std::string _host)
//    {
//        port=_port;
//        host.setAddress(QString(_host.c_str()));
//    }
//    ~Communication()
//    {
//        delete socket;
//        //socket->close();
//    }
//    void            connect();
//    bool            bind();
//    void            Send(std::string);
//    std::string     Recieve();
//    int             PendingData();
//    void            close();
///*signals:
//    void messageRecieved(std::string);*/
//private:
//    quint16 port;
//    QHostAddress host;
//    QUdpSocket *socket;
//    bool is_closed;
//};
//#endif
